﻿<ServiceContract()>
Public Interface IRestServiceImpl
    <OperationContract()>
    <WebInvoke(Method:="GET", _
        ResponseFormat:=WebMessageFormat.Xml, _
        BodyStyle:=WebMessageBodyStyle.Wrapped, _
        UriTemplate:="xml/{id}")> _
    Function XMLData(ByVal id As String) As String

    <OperationContract()>
    <WebInvoke(Method:="GET", _
        ResponseFormat:=WebMessageFormat.Json, _
        BodyStyle:=WebMessageBodyStyle.Wrapped, _
        UriTemplate:="json/{id}")> _
    Function JSONData(ByVal id As String) As String
End Interface
